package com.newlink.building.userinfo.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.FeedbackRequest
import com.newlink.building.common_base.model.bean.HttpResult
import io.reactivex.Observable
import okhttp3.MultipartBody

interface Module_UserInfo_FeedbackContract {

    interface Model : IModel {
        fun sendFeedBack(
            token: String,
            request: FeedbackRequest,
            parts: List<MultipartBody.Part>
        ): Observable<HttpResult<Any?>>
    }

    interface View : IView {
        fun onSendFeedBackSuccess(success: Boolean)
    }

    interface Presenter : IPresenter<View> {
        fun sendFeedBack(token: String, request: FeedbackRequest, parts: List<MultipartBody.Part>)
    }
}